var status = -1;
var selectionLog = [];

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.npc_ChangeController(1540446, "oid=55840", -73, -24, 1, -79, -23, 1, false, 0, false);
            cm.npc_ChangeController(1540498, "oid=286088922", -35, -30, 1, -85, 15, 1, true, 0, false);
            cm.npc_SetSpecialAction("oid=286088922", "summon", 0, 0);
            cm.sendNormalTalk_Bottom("呼……呼。\r\n攻击总算停止了。", 37, 1540453, false, true)
        } else {
            if (status === a++) {
                cm.sendNormalTalk_Bottom("你受伤了吗，赫丽娜？", 57, 0, true, true)
            } else {
                if (status === a++) {
                    cm.sendNormalTalk_Bottom("我只是受了点轻伤而已。\r\n我们好不容易才到达这里，你能确认一下前方吗？", 37, 1540453, true, false)
                } else {
                    if (status === a++) {
                        cm.dispose()
                    }
                }
            }
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};